package com.nondo.rdp.finance.service.analysis;

import com.nondo.rdp.auth.domain.User;
import com.nondo.rdp.finance.domain.analysis.Analysis;
import com.nondo.rdp.finance.domain.analysis.AnalysisComplain;

public interface AnalysisComplainService {
    /**
     * 保存分析投诉
     *
     * @param analysisComplain
     */
    AnalysisComplain save(AnalysisComplain analysisComplain);

    /**
     * 根据主键ID删除分析投诉
     *
     * @param id
     */
    void delete(Long id);

    /**
     * 根据主键ID查询分析投诉
     *
     * @param id
     * @return
     */
    AnalysisComplain findOne(Long id);

    /**
     * 根据分析ID和用户ID查找投诉
     *
     * @param analysis
     * @param user
     * @return
     */
    AnalysisComplain findByAnalysisAndUser(Analysis analysis, User user);
}
